/* 我的页面整体样式 */
.myPage {
    min-height: 100vh;
    background-color: #f5f5f5;
    position: relative;
    padding-bottom: 20px; /* 移除底部导航的空间 */
    overflow-x: hidden; /* 防止水平滚动 */
}

/* 顶部用户信息区域 */
.userHeader {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 16px 40px;
    position: relative;
    margin-bottom: 10px;
}

.headerTop {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.headerIcons {
    display: flex;
    gap: 16px;
}

.iconRefresh,
.iconSettings {
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.iconRefresh:hover,
.iconSettings:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.iconRefresh:active,
.iconSettings:active {
    transform: scale(0.95);
}

.userInfo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.userDetails {
    flex: 1;
    min-width: 0;
}

.username {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editIcon {
    font-size: 14px;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s;
}

.editIcon:hover {
    opacity: 1;
}

.userMeta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.schoolName {
    font-size: 14px;
    opacity: 0.9;
}

.studentId {
    font-size: 12px;
    opacity: 0.7;
}

/* 统计数据卡片 */
.statsCard {
    background: white;
    margin: 0 16px 16px;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.statItem {
    text-align: center;
    flex: 1;
    padding: 0 8px;
}

.statNumber {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 6px;
    display: block;
}

.statLabel {
    font-size: 12px;
    color: #666;
    display: block;
}

/* 快捷功能卡片 */
.quickAccessCard {
    background: white;
    margin: 0 16px 16px;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quickItem {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 8px;
    border-radius: 8px;
}

.quickItem:hover {
    transform: translateY(-2px);
    background-color: #f8f9fa;
}

.quickIcon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.quickLabel {
    font-size: 12px;
    color: #666;
}

/* 服务中心卡片 */
.serviceCenterCard,
.otherFunctionsCard {
    background: white;
    margin: 0 16px 16px;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.serviceTitle {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.serviceTitle::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    margin-right: 8px;
}

.serviceItem {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.serviceItem:last-child {
    border-bottom: none;
}

.serviceItem:hover {
    background-color: #f8f9fa;
}

.serviceIcon {
    font-size: 20px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.serviceLabel {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.serviceArrow {
    color: #ccc;
    font-size: 16px;
}

/* 退出登录按钮 */
.logoutSection {
    margin: 20px 16px;
}

.logoutButton {
    width: 100%;
    padding: 12px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.logoutButton:hover {
    background: #ff3742;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .statsCard,
    .quickAccessCard,
    .serviceCenterCard,
    .otherFunctionsCard {
        margin-left: 12px;
        margin-right: 12px;
    }
    
    .userHeader {
        padding: 16px 12px 30px;
        margin-bottom: 8px;
    }
    
    .avatar {
        width: 50px;
        height: 50px;
    }
    
    .username {
        font-size: 16px;
    }
    
    .statsCard {
        padding: 16px 12px;
    }
    
    .statItem {
        padding: 0 4px;
    }
    
    .statNumber {
        font-size: 20px;
    }
    
    .quickAccessCard {
        padding: 16px;
    }
    
    .quickItem {
        padding: 6px;
    }
    
    .quickIcon {
        font-size: 20px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.statsCard,
.quickAccessCard,
.serviceCenterCard,
.otherFunctionsCard {
    animation: fadeInUp 0.6s ease-out;
}

.quickAccessCard {
    animation-delay: 0.1s;
}

.serviceCenterCard {
    animation-delay: 0.2s;
}

.otherFunctionsCard {
    animation-delay: 0.3s;
}

/* 移除旧的底部导航样式 */
.bottomNav,
.navItem,
.navIcon,
.navLabel {
    display: none;
} 
/* 底部弹窗样式 */
.logoutModal {
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* 顶部拖拽指示器 */
.logoutModal::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

.modalTitle {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 20px;
    text-align: center;
    padding: 0 16px;
}

.modalContent {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 16px 20px;
}

.modalItem {
    padding: 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.modalItem::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.modalItem:hover::before {
    left: 100%;
}

.modalItem:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modalItem:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

.modalItem:first-child {
    color: #ff4757;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 1px solid #ffebee;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.1);
}

.modalItem:first-child:hover {
    background: linear-gradient(135deg, #ffe8e8 0%, #ffd6d6 100%);
    border-color: #ffcdd2;
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.2);
}

.modalItem:last-child {
    color: #666;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modalItem:last-child:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 分隔线 */
.modalDivider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    margin: 8px 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .logoutModal {
        border-radius: 16px 16px 0 0;
    }
    
    .modalTitle {
        font-size: 16px;
        margin: 20px 0 16px;
    }
    
    .modalItem {
        padding: 14px;
        font-size: 15px;
    }
}

/* 弹出动画 */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logoutModal {
    animation: slideUp 0.3s ease-out;
}

/* 按钮点击效果 */
.modalItem:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* 安全区域适配 */
@media (max-width: 768px) {
    .logoutModal {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .logoutModal {
        background: #1a1a1a;
        color: #fff;
    }
    
    .modalTitle {
        color: #fff;
    }
    
    .modalItem:first-child {
        background: linear-gradient(135deg, #2d1b1b 0%, #3d1f1f 100%);
        border-color: #4a2a2a;
    }
    
    .modalItem:last-child {
        background: #2a2a2a;
        border-color: #3a3a3a;
        color: #ccc;
    }
    
    .modalItem:last-child:hover {
        background: #3a3a3a;
        border-color: #4a4a4a;
    }
}